package slim3.dao;

import org.slim3.jdo.GenericDao;

import slim3.model.Category;
import slim3.model.CategoryMeta;

public class CategoryDao extends GenericDao<Category> {

    private static final CategoryMeta m = new CategoryMeta();
    public CategoryDao() {
        super(Category.class);
    }
    public Category findByName(String name) {
        return from().where(m.name.eq(name)).getSingleResult();
    }
}
